class Author < ActiveRecord::Base
  belongs_to :country
  belongs_to :catalog_state
  has_and_belongs_to_many :materials
  validates_presence_of :first_name, :last_name, :sex, :country
  validates_uniqueness_of :first_name, :scope => :last_name, :case_sensitive => false
end
